using System;
using System.Collections.Generic;
using System.Text;
using AAM.BIZ;
using AAM;

namespace CMS.BIZ
{
    [DatabaseTable(TableName="Contents", TableAlias="c")]
    public class BizContent : BizObject
    {

        public static readonly ObjectType ObjectType = new ObjectType("BizContent");

        private int contentID = 0;
        private string cultureCode = "";
        private string contentText = "";

        public BizContent()
            : base(ObjectType,new object[]{0,""})
        {
        }

        #region 'Properties'
        [DatabaseRow(PrimaryKey=true)]
        public int ContentID
        {
            get { return contentID; }
            set { contentID = value; ID[0] = value; }
        }
        [DatabaseRow(PrimaryKey = true,PrimaryKeyIndex=1)]
        public string CultureCode
        {
            get { return cultureCode; }
            set { cultureCode = value; ID[1] = value; }
        }
        [DatabaseRow()]
        public string ContentText
        {
            get { return contentText; }
            set { contentText = value; }
        }

        #endregion

    }
}
